<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
		
		       for($i = 1; $i <= 10; $i++)        
		
		           {if($i == 6) break;
		
		            document.write($i);
		
		}
		
		</script>
	</body>
</html>